Skip to main content
Version: 1.x.x

CacheAsyncStorageType


import { CacheAsyncStorageType } from "@hyper-fetch/core"

Description

Defined in cache/cache.types.ts:42

Preview

type CacheAsyncStorageType = {
delete: (key: string) => Promise<void>;
get: <Response,Error>(key: string) => Promise<CacheValueType<Response, Error> | undefined>;
keys: () => Promise<string[] | IterableIterator<string> | string[]>;
set: <Response,Error>(key: string, data: CacheValueType<Response, Error>) => Promise<void>;
}

Structure

{
delete: (key: string) => Promise<void>;
get: (key: string) => Promise<CacheValueType<Response, Error> | undefined>;
keys: () => Promise<string[] | IterableIterator<string> | string[]>;
set: (key: string, data: CacheValueType<Response, Error>) => Promise<void>;
}